home *** CD-ROM | disk | FTP | other *** search
- Path: news.oanet.com!dialin8
- From: scorpion@portal.connect.ab.ca
- Newsgroups: comp.lang.c
- Subject: Bad code
- Date: Fri, 29 Mar 96 16:44:58 GMT
- Organization: Central News Services
- Message-ID: <4jhau8$hrl@hermes.oanet.com>
- NNTP-Posting-Host: dialin8.connect.ab.ca
- Summary: How come this liitle scragle of code doesn't work?
- Keywords: Problems
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- I need to know why a piece of my C code doesn't work .
- it does like:
-
- Object.Vertices+i.X = (long) .....
- Object.Vertices+i.Y = (long).......
- Object.Vertices+i.Z=(long) ........
-
- Vertices is a pointer to a struct with {long X,Y,Z} that
- has been typedef'ed. i is an index vatiable that is added to the
- pointer to make is point to the next {long X,Y,Z} typedef'ed
- struct . When I go to compile , it says "not a struct or union
- type". When I parenthesize Vertices+i , I get an "Identified
- Expected " error . I am somewhat new to C . this problem has been
- plauging wme for a few days . I can't figure it out . Please point
- me in th right direction if you can . Thanx very much in advance .
- :@)
-
- John Smith
- scorpion@portal.connect.ab.ca
-